package com.bwie.service;

import com.bwie.pojo.TbActivity;
import com.bwie.pojo.TbGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.pojo.TbGoodsVo;
import com.bwie.pojo.TbUser;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import freemarker.template.TemplateException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author DELL
* @description 针对表【tb_goods】的数据库操作Service
* @createDate 2024-07-03 15:45:15
*/
public interface TbGoodsService extends IService<TbGoods> {

    R TbGoodsList(PageInfoVo pageInfoVo);

    R TbSortList(Integer id);

    R OssUpload(MultipartFile file) throws IOException;

    R saveGoods(TbGoodsVo tbGoodsVo);

    R recommend(Integer id, Integer right) throws TemplateException, IOException;

    R TbActivityList();

    R saveTbActivity(TbActivity tbActivity);

    R userLogin(TbUser tbUser);

    R getByIdGoods(Integer id) throws TemplateException, IOException;
}
